MyGame.s8_1 = function(game) {
	
	

};


MyGame.s8_1.prototype = {
    create: function() {
    	
        var that = this;
    	
		console.log('s8_1-老师')
        

        game.bg2 = game.add.image(0,0,'s8_1_1_bg');

        game.bg = game.add.image(0,0,'s8_1_bg');

 

        game.timu = game.add.image(121,368,'s8_1_timu');


        game.add.tween(game.timu).from({ alpha : 0}, 2000, Phaser.Easing.Cubic.Out, true, 1000)



       
        game.add.tween(game.bg).to({ alpha : 0}, 2000, Phaser.Easing.Cubic.Out, true, 2000).onComplete.add(function(){
            GameUI.touch(560,537,function(){
                game.touch1.kill();
                game.touch2.kill();
   
                loadChart('p8_1',function(){
                    $('#p8_1').hide();
                    setTimeout(function(){
                        $('#p8_1').find('.chat-content').css({
                            opacity : 1
                        })
                    },0)
    
                    game.state.start('s9')
    
    
                })
            })
        })
       
        

       

        

        GameUI.cutscenes()


       
        

       

    },

    
    

    update: function() {
    	
    	
    	
    },
    
    
    
    render : function(){
    	/*game.obstacles.forEach(function(item){
            game.debug.body(item);
        })
    	game.debug.body(game.player);*/
    }
};

